#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void insert(int* arr,int n)
{
	for (int i = 0; i < n - 1; i++)
	{
		int end = i+1;
		int tem = arr[end];
		while (end-1>=0)
		{
			if (arr[end-1] > tem)
			{
				arr[end] = arr[end-1];
				end--;
			}
			else
			{
				break;
			}
		}
		arr[end] = tem;
	}
}

//.
//int main()
//{
//	int a[] = { 5,8,9,6,7,151,84,2,7,5,7 };
//	int n = sizeof(a) / sizeof(a[0]);
//	insert(a,n);
//	return 0;
//}
